package Server;

import java.awt.BorderLayout;

import javax.swing.*;

public class PanelCentral extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private final int ROWS = 10;
	private final int COLS = 40;
	
	private JTextArea display;
	
	public PanelCentral() {
		configurar();
		ServerRun.panelCentral = this;
	}
	
	public JTextArea getDisplay() {
		return display;
	}

	private void configurar() {
		display = new JTextArea(ROWS,COLS);
		JScrollPane js = new JScrollPane(display);
		js.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
		setLayout(new BorderLayout());
		add(js,BorderLayout.CENTER);
	}
}
